<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "order_active_record".
 *
 * @property string $id
 * @property string $order_id
 * @property integer $active_number
 * @property integer $active_num
 * @property string $user_id
 * @property integer $date
 * @property integer $create_time
 */
class OrderActiveRecord extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'order_active_record';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id'], 'required'],
            [['active_number', 'active_num', 'date', 'create_time'], 'integer'],
            [['id', 'order_id', 'user_id'], 'string', 'max' => 36],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'order_id' => 'Order ID',
            'active_number' => 'Active Number',
            'active_num' => 'Active Num',
            'user_id' => 'User ID',
            'date' => 'Date',
            'create_time' => 'Create Time',
        ];
    }
}
